Motor driver with multipurpose pin

ABSTRACT

A motor driver system. Implementations may include: a motor driver configured to couple with a motor where the motor driver comprises a multipurpose pin. A controller may be included coupled with the motor driver through at least the multipurpose pin. The motor driver during an enable mode, may be configured to receive serial data from the controller and to send serial data to the controller using the multipurpose pin during a normal operation mode of the motor driver. The motor driver may be configured to output a frequency generator (FG) signal to the controller using the multipurpose pin during the normal operation mode of the motor driver.

SUMMARY

Implementations of a motor driver system may include: a motor driverconfigured to couple with a motor where the motor driver comprises amultipurpose pin. A controller may be included coupled with the motordriver through at least the multipurpose pin. The motor driver during anenable mode, may be configured to receive serial data from thecontroller and to send serial data to the controller using themultipurpose pin during a normal operation mode of the motor driver. Themotor driver may be configured to output a frequency generator (FG)signal to the controller using the multipurpose pin during the normaloperation mode of the motor driver.

Implementations of motor driver systems may include one, all, or any ofthe following:

The motor driver, at the end of the enable mode, may be configured towait during a synchronization period before terminating sending serialdata to or receiving serial data from the controller.

The motor driver may further include an interface including acommunication controller, an edge detector, and a busy signal generatoroperatively coupled together and coupled with an inverter. The invertermay be coupled with the multipurpose pin. A selection signal generatormay also be included.

The motor driver may further include an interface including acommunication controller coupled with an output of an enable signalgenerator, the busy signal generator, and the inverter. The edgedetector may be positive edge detector.

The enable signal generator may include a first inverter coupled with anoutput of the busy signal generator and a second inverter coupled withan output of a selection sign signal generator. A not-AND (NAND) gatemay be included that may include a first input coupled to an output ofthe first inverter, a second input coupled to an output of the secondinverter, a third input coupled to an output of a frequency generatorlogic unit, and an output coupled with a multiplexer. A third invertermay be included that includes an input coupled to the output of thefrequency generator logic unit and an output coupled with themultiplexer where the multiplexer includes a control input and anoutput. A flip-flop may be included that includes a data input coupledto the output of the multiplexer and an output coupled to the controlinput of the multiplexer and an output of the enable signal generator.The flip-flop may be configured to generate an enable signal in responseto receiving an output signal from the multiplexer.

The selection signal generator may include a first inverter coupled withan output of a frequency generator logic unit and a second invertercoupled with the output of the busy signal generator. A first NAND gatemay be included that has a first input coupled with an output of thefirst inverter and has a second input coupled to an output of the secondinverter. A first AND gate may be included that has a first inputcoupled to an output of the first NAND gate and a second input coupledto the output of the enable signal generator. A second AND gate may beincluded which has a first input to the output of the busy signalgenerator and a second input coupled to the output of the enable signalgenerator. A multiplexer may be included which has a first input coupledto the output of the first AND gate, a second input coupled to theoutput of the second AND gate, and a control input. A flip-flop may becoupled to the output of the multiplexer and to an output coupled withthe control input where the flip-flop may be configured to generate aselection signal generator output signal in response to receiving anoutput signal from the multiplexer.

The busy signal generator may include an inverter coupled with an outputof the communication controller and a first AND gate having a firstinput coupled with an output of the inverter and a second input coupledwith an output of an enable signal generator. A second AND gate may beincluded having a first input coupled with an output of the edgedetector an a second input coupled with the output of the enable signalgenerator. A multiplexer may be included and coupled with an output ofthe first AND gate and an output of the second AND gate where themultiplexer includes a control input. A flip-flop may be includedcoupled with an output of the multiplexer and the flip-flop may have anoutput coupled with the control input. The flip-flop may be configuredto generate a busy signal output in response to receiving an outputsignal from the multiplexer.

Implementations of a motor driver system may include a motor driverconfigured to coupled with a motor, the motor driver including amultipurpose pin. A controller may be included coupled with the motordriver through at least the multipurpose pin. The motor driver mayinclude a communication controller, an edge detector, an enable signalgenerator, a frequency generator logic unit, a selection signalgenerator, and a busy signal generator operatively coupled together andcoupled with an inverter. The inverter may be coupled with themultipurpose pin.

Implementations of a motor driver system may include one, all, or any ofthe following:

The motor driver, during an enable mode, may be configured to receiveserial data from the controller and to send serial data to thecontroller using the multipurpose pin during a normal operation mode ofthe motor driver. The motor driver may be configured to output afrequency generator (FG) signal to the controller using the multipurposepin during the normal operation mode of the motor driver.

The motor driver, at the end of the enable mode, may be configured towait during a synchronization period before terminating sending serialdata or receiving serial data from the controller.

The enable signal generator my include a first inverter coupled with anoutput of the busy signal generator and a second inverter coupled withan output of the selection signal generator. A NAND gate may be includedhaving a first input coupled to an output of the first inverter, asecond input coupled to an output of the second inverter, a third inputcoupled to an output of the frequency generator unit, and an outputcoupled with a multiplexer. A third inverter may be included thatincludes an input coupled to the output of the frequency generator logicunit and an output coupled with the multiplexer. The multiplexer mayinclude a control input and an output. A flip-flop may be included thatincludes a data input coupled to the output of the multiplexer. Theflip-flop may include a data input coupled to the output of themultiplexer where the flip-flop has an output coupled to the controlinput of the multiplexer and an output of the enable signal generator.The flip-flop may be configured to generate an enable signal in responseto receiving an output signal from the multiplexer.

The selection signal generator may include a first inverter coupled withan output of the frequency generator logic unit and a second invertercoupled with the output of the busy signal generator. A first NAND gatemay be included having a first input coupled with an output of the firstinverter and a second input coupled to an output of the second inverter.A first AND gate may be include having a first input coupled to anoutput of the first NAND gate and a second input coupled to the outputof the enable signal generator. A second AND gate may be included havinga first input coupled to the output of the busy signal generator and asecond input coupled to the output of the enable signal generator. Amultiplexer may be included having a first input coupled to the outputof the first AND gate, a second input coupled to the output of thesecond AND gate, and a control input. A flip-flop may be includedcoupled to the output of the multiplexer and to an output coupled withthe control input. The flip-flop may be configured to generate aselection signal generator output signal in response to receiving anoutput signal from the multiplexer.

The busy signal generator may include an inverter coupled with an outputof the communication controller and a first AND gate having a firstinput coupled with an output of the inverter and a second input coupledwith an output of the enable signal generator. A second AND gate may beincluded having a first input coupled with an output of the edgedetector and a second input coupled with the output of the enable signalgenerator. A multiplexer may be included coupled with an output of thefirst AND gate and an output of the second AND gate. The multiplexer mayinclude a control input. A flip-flop may be coupled with an output ofthe multiplexer and may include an output coupled with the controlinput. The flip-flop may be configured to generate a busy signal outputin response to receiving an output signal from the multiplexer.

Implementations of motor drivers and motor driver systems like thosedisclosed herein may utilized implementations of a method of driving amotor. Implementations of the method may include providing a motordriver configured to couple with a motor. The motor driver may include amultipurpose pin coupling a controller with the motor driver through atleast the multipurpose pin. The method may include, using the motordriver, receiving serial data from the controller using the multipurposepin and sending serial data to the controller using the multipurpose pinduring a normal operation mode of the motor driver. The method may alsoinclude outputting a frequency generator (FG) signal to the controllerusing the multipurpose pin during the normal operation mode of the motordriver.

Implementations of the method may include one, all, or any of thefollowing:

The method may further include waiting, using the motor driver at theend of an enable mode, during a synchronization period beforeterminating sending serial data to or receiving serial data from thecontroller.

Receiving serial data from the controller may further include beginningserial transmission of data by first setting an ENABLE signal to high,followed by simultaneously setting a BUSY signal to high, and aSelection Signal Generator Output (SELSO) to high.

Sending serial data to the controller may further include first settinga BUSY signal to low and setting a Selection Signal Generator Output(SELSO) to low while an ENABLE signal is low thereby creating asynchronization period between when serial data transmission ends andthe normal operation mode of the motor begins.

An interface may be coupled with the multipurpose pin. The method mayfurther include, using the interface, sensing beginning of serial datacommunication to the controller and sensing ending of serial datacommunication to the controller. The method may also includesynchronizing the serial data communication with the FG signaltransmitted by the multipurpose pin during the beginning and ending ofserial data communication using the interface.

Sensing beginning of serial data communication to the controller andsensing ending serial data communication may both further include usingan edge detector comprised in the interface to sense an edge of the FGsignal.

The method may further include providing an output of the edge detectorto a busy signal generator, and setting a BUSY signal to one of a HIGHvalue or a LOW value in response to the output of the edge detectorusing the busy signal generator. The method may also include using theBUSY signal to create a synchronization period between when serial datatransmission ends and the normal operation mode of the motor driverbegins.

The foregoing and other aspects, features, and advantages will beapparent to those artisans of ordinary skill in the art from theDESCRIPTION and DRAWINGS, and from the CLAIMS.

BRIEF DESCRIPTION OF THE DRAWINGS

Implementations will hereinafter be described in conjunction with theappended drawings, where like designations denote like elements, and:

FIG. 1 is a schematic diagram of a system implementing a motor driver inaccordance with various implementations;

FIG. 2 is a schematic diagram of judgment logic in accordance withvarious implementations;

FIG. 3 is a schematic diagram of an interface and logic circuit inaccordance with various implementations;

FIG. 4 is a table of input and output signal relationships in accordancewith various implementations;

FIG. 5 is a flowchart of a method for motor driver operation modeselection in accordance with various implementations;

FIG. 6 is a flowchart of a method for motor driver operation modejudgment in accordance with various implementations;

FIG. 7 is a flowchart of another method for motor driver operation modejudgment in accordance with various implementations;

FIG. 8 is a flowchart of another method for motor driver operation modejudgment in accordance with various implementations;

FIG. 9 is a flowchart of another method for motor driver operation modejudgment in accordance with various implementations;

FIG. 10 is a flowchart of another method for motor driver operation modejudgment in accordance with various implementations;

FIG. 11 is a schematic diagram of an implementation of a motor driversystem;

FIG. 12 is a truth table of motor operation signal states occurring invarious implementations;

FIG. 13 is a block diagram of an implementation of a motor interface;

FIG. 14 is a schematic diagram of an implementation of an enable signalgenerator;

FIG. 15 is a schematic diagram of an implementation of a selectionsignal generator;

FIG. 16 is a flowchart of an implementation of a method of operation ofa motor driver;

FIG. 17 is a flowchart of an another implementation of a method ofoperation of a motor driver;

FIG. 18 is a flowchart of an another implementation of a method ofoperation of a motor driver;

FIG. 19 is a state diagram of an implementation of a method of operatinga motor driver;

FIG. 20 is a timing diagram of an implementation of various signalsgenerated by a motor driver implementation;

FIG. 21 is a schematic diagram of an implementation of a positive edgedetector;

FIG. 22 is a schematic diagram of an implementation of a busy signalgenerator.

DESCRIPTION

This disclosure, its aspects and implementations, are not limited to thespecific components, assembly procedures or method elements disclosedherein. Many additional components, assembly procedures and/or methodelements known in the art consistent with the intended motor driverswill become apparent for use with particular implementations from thisdisclosure. Accordingly, for example, although particularimplementations are disclosed, such implementations and implementingcomponents may comprise any shape, size, style, type, model, version,measurement, concentration, material, quantity, method element, step,and/or the like as is known in the art for such motor drivers, andimplementing components and methods, consistent with the intendedoperation and methods.

Disclosed herein are various motor driver implementations that providefor multi-functional serial control of a motor driver using a singlemultipurpose pin of an electrical component package of the motor driver.The electrical component package may at least partially contain themotor driver and may include one or more pins (including, for example,the single multipurpose pin) as electrically conductive paths forcoupling devices outside of the electrical component package to themotor driver. The motor driver may be at least partially containedwithin the electrical component package. The motor driver may beoperable to couple to other devices such as a motor that may be drivenby the motor driver and/or a controller that may control at least someoperations and/or functions of the motor driver. In someimplementations, the motor driver may be operable to, via themultipurpose pin, output a FG signal and input (or output) serial datafor storing data to the motor driver (or reading data from the motordriver). In some implementations, the motor driver may be furtheroperable to, via the multipurpose pin, determine a mode of operation forthe motor driver desired by a controller coupled to the motor driver viathe multipurpose pin. Enabling the motor driver to perform multipleoperations via the single multipurpose pin may reduce a size of themotor driver or of the electrical component package, reduce a powerconsumption of the motor driver, reduce a manufacturing cost formanufacturing the motor driver, and/or providing increased flexibilityin implementing the motor driver to control a motor.

Turning now to FIG. 1, a schematic diagram of an implementation of asystem 100 implementing a motor driver 105 in accordance with variousimplementations is illustrated. The motor driver 105 may be coupled to,or may be operable to couple to, a controller 110, a motor (not shown),and one or more other components (not shown) that may receive outputfrom, or provide input to, the motor driver 105. In at least someimplementations, the motor driver 105 may be coupled to the controller110 via a multipurpose pin 115. The multipurpose pin 115 may enable themotor driver to receive input (e.g., such as serial data) from thecontroller 110 and provide an output to the controller 110. In someimplementations, the multipurpose pin 115 may be referred to as a FGpin. The multipurpose pin 115 (and correspondingly, the motor driver105) may be described as having a normal operation mode and a settingoperation mode. The motor driver 105 may determine whether themultipurpose pin 115 should operate in the normal operation mode or thesetting operation mode at least partially based on whether a prescribedsignal is received at the multipurpose pin 115 within a period of timeallotted for receipt of a mode control signal. The period of timeallotted for receipt of a mode control signal may, for example, beginand extend from a time at which the motor driver transitions from apowered-off state to a powered-on state.

As illustrated in FIG. 1, the motor driver 105 may include transistor120, inverter 125, judgment logic 130, interface 135, memory 140, FGlogic 145, multiplexer 150, and logic circuit 155. In variousimplementations, the motor driver 105 may further include one or moreother elements (not shown) that may be operable to enable driving of themotor by the motor driver 105 (for example, by receiving and/orprocessing input, processing and/or transmitting output, etc.). In someimplementations, the inverter 125 may couple an input of the judgmentlogic 130 and the interface 135 to the multipurpose pin 115. An outputof the multiplexer 150 may be further coupled to the multipurpose pin115 via the transistor 120. The transistor 120, in some implementations(such as shown in FIG. 1), may be a field effect transistor (FET)configured in an open-drain configuration in which a drain terminal ofthe transistor 120 is coupled to the multipurpose pin 115, a sourceterminal of the transistor 120 is coupled to a ground voltage potential,and a gate terminal of the transistor 120 is coupled to an output of themultiplexer 150. In other implementations, the transistor 120 may be ofany suitable construction or style and may be configured according toany suitable configuration.

In some implementations, the interface 135 may be further coupled to thememory 140, logic circuit 155, judgment logic 130, and to a signal inputof the multiplexer 150. The memory 140 may be coupled to the interface135 and the logic circuit 155. The judgment logic 130 may be furthercoupled to the logic circuit 155, a control input of the multiplexer150, and the FG logic 145. The FG logic 145 may be further coupled tothe logic circuit 155 and a signal input of the multiplexer 150.

As discussed above, in various implementations the motor driver 105 mayinclude at least a normal operation mode and a setting operation mode.Operation in the normal operation mode or the setting operation mode maybe signaled to the motor driver 105 at least via the multipurpose pin115 (e.g., signaled by the controller 110). In some implementations, thesignaling may be indicated by receipt of the prescribed signal (e.g., asignal having a prescribed pattern or sequence of bits) by the motordriver 105 via the multipurpose pin 115. The judgment logic 130 maydetermine whether the prescribed signal is included in any signalingreceived by the motor driver 105 via the multipurpose pin 115. Forexample, the judgment logic 130 may monitor the multipurpose pin 115 forinput within a predetermined period of time following powering on of themotor driver 105 and/or the system 100. The predetermined period of timemay be, for example, about 5 milliseconds (ms), about 7 ms, about 10 ms,or any other suitable time period that allows for receipt of theprescribed signal and that may be determined according to a particularconstruction of an electrical circuit (e.g., an integrated circuit) thatincludes the motor driver 105.

When the judgment logic 130 determines that the prescribed signal ispresent in an input signal received by the motor driver 105 at themultipurpose pin 115 during the predetermined period of time, thejudgment logic 130 may output a setting mode enable signal. In someimplementations, the setting mode enable signal may indicate to at leastone other component in the motor driver 105 that the motor driver 105 isto operate in the setting operation mode. When the motor driver 105operates in the setting operation mode, the interface 135 may receiveinput from the multipurpose pin 115 via the inverter 125 such that avalue of the input when received at the interface 135 is an inverse of avalue of the input when received at the multipurpose pin 115. Theinterface 135, in some implementations, may provide the input receivedfrom the inverter 125 to the memory 140 for storage by the memory 140 asstored data. The stored data may be, in some implementations, an outputduty cycle (e.g., a pulse width modulation (PWM) duty cycle), a minimumspeed, a soft start (e.g., gradual start) time, a soft switch width, alock protection time, a tachometer selection signal, a lock detectionsignal, or other configurable features or functions of the motor driver105 or relating to operation of the motor to which the motor driver 105is coupled. In some implementations, the interface 135 may furtherprovide the input received by the interface 135 to the logic circuit 155(e.g., as serial data) for use by the logic circuit, for example, fortrial driving of the motor.

In some implementations, the logic circuit 155 may read the stored datafrom the memory 140 and output the stored data back to the controller110 via the multipurpose pin 115 for verification that the stored datais correct (e.g., such that the data was not altered or corrupted froman intended value in the storing process). For example, the logiccircuit 155 may read the stored data from the memory 140 and transmitthe stored data to the interface 135. In other implementations, theinterface 135 may read the stored data from the memory 140 and outputthe stored data back to the controller 110 via the multipurpose pin 115in addition to, or in place of, the logic circuit 155. The interface 135may transmit the stored data to the multiplexer 150 for output to thecontroller 110 via the multipurpose pin 115 and transistor 120. In someimplementations, the control input of the multiplexer 150 may be coupledto the judgment logic 130 such that the setting mode enable signaloutput by the judgment logic 130 controls selection of an input of themultiplexer 150 for output by the multiplexer 150. For example, when thesetting mode enable signal is high (e.g., the motor driver 105 is in thesetting operation mode) the multiplexer 150 may output an input receivedfrom the interface 135 (e.g., such as the stored data as discussedabove).

When the judgment logic 130 determines that the prescribed signal is notpresent in the input signal received by the motor driver 105 at themultipurpose pin 115 during the predetermined period of time, thejudgment logic 130 may output a normal mode enable signal. In someimplementations, the normal mode enable signal may indicate to at leastone other component in the motor driver 105 that the motor driver 105 isto operate in the normal operation mode. When the motor driver 105operates in the normal operation mode, the FG logic 145 may receiveinput from the logic circuit 155 and provide an output at leastpartially based on the received input to the multiplexer 150 for outputvia the multipurpose pin 115 and transistor 120. The output, in someimplementations, may provide information about a state of the motorcoupled to the motor driver 105. For example, the output may indicate arotational state of the motor.

Turning now to FIG. 2, a schematic diagram of the judgment logic 130 inaccordance with various implementations is shown. In someimplementations, the judgment logic 130 may comprise an edge detector210, a timer circuit 220, a period counter 230, an edge frequencycounter 240, a pattern detector 250, and a signal generator 260. Thejudgment logic 130 may be coupled to the logic circuit 155 and mayreceive a judgment start signal from the logic circuit 155. The judgmentstart signal, in some implementations, indicates to the judgment logic130 (and correspondingly, to the timer circuit 220, period counter 230,edge frequency counter 240, and pattern detector 250) to begindetermining whether the prescribed signal is received by the judgmentlogic 130 within the predetermined period of time. When the timercircuit 220 receives the judgment start signal from the logic circuit155, the timer circuit 220 may initiate a timer or a counter (e.g., atimer beginning at a predetermined time and counting down to zero or atimer beginning at zero and counting up to the predetermined time) toenable the judgment logic 130 to determine whether the prescribed signalis received within the predetermined time. When the timer circuit 220determines that the predetermined time has expired (e.g., when the timerreaches zero or the predetermined time), the timer circuit 220 mayoutput a timeout signal to the pattern detector 250 indicating that thepredetermined time has expired. The timeout signal, in someimplementations, may indicate to the pattern detector 250 to ceasedetecting whether the prescribed signal is received by the judgmentlogic 130 until the pattern detector 250 receives another judgment startsignal.

The judgment logic 130 may receive input from the inverter 125 at theedge detector 210. The input may be, for example, a multi-bit binarysignal such that the signal includes positive edges (transitions from abinary “0” or low to a binary “1” or high) and negative edges(transitions from a binary “1” or high to a binary “0” or low). Based onthe input, the edge detector 210 may determine whether the edge of thesignal is a positive edge (e.g., a rising edge) or a negative edge(e.g., a falling edge). The edge detector 210 may provide an outputindicating whether a positive edge or a negative edge is detected in theinput to the period counter 230, edge frequency counter 240, and thepattern detector 250. The period counter 230, in some implementations,may begin a counter or timer upon receipt of a signal indicating adetected positive edge in the input received by the judgment logic 130.When the period counter 230 receives a signal indicating a detectednegative edge in the input received by the judgment logic 130, theperiod counter 230 may stop the counter or timer and provide a countvalue or time of the period of the input received by the judgment logic130 to the pattern detector 250.

The edge frequency counter 240 may count a frequency of edge changes inthe input received by the judgment logic 130. For example, when the edgefrequency counter 240 receives the judgment start signal, the edgefrequency counter 240 may reset a count value to zero. The edgefrequency counter 240 may then begin incrementing the count value by 1for each signal received by the edge frequency counter 240 indicating adetected positive edge or negative edge in the input received by thejudgment logic 130. The pattern detector 250 may receive the judgmentstart signal, timeout signal, count value or time of the period, andedge frequency count and, from receipt of the judgment start signaluntil receipt of the timeout signal, may determine whether theprescribed signal is received by the judgment logic 130. The patterndetector 250 may perform the determination or detection at leastpartially according to the count value or time of the period and theedge frequency count. When the prescribed pattern is detected within thepredetermined period of time, the pattern detector 250 may provide asignal to the signal generator 260 indicating that the prescribedpattern has been detected. When the prescribed pattern is not detectedwithin the predetermined period of time, the pattern detector 250 mayprovide a signal to the signal generator 260 indicating that theprescribed pattern has not been detected. Based on the signals receivedfrom the pattern detector 250, the signal generator 260 may generate andoutput the setting mode enable signal and/or the normal mode enablesignal.

Turning now to FIG. 3, a schematic diagram of the interface 135 andlogic circuit 155 in accordance with various implementations is shown.In some implementations, the interface 135 may include a trial drivingenable signal generator 310. In some implementations, the logic circuit155 may include a conventional driving enable signal generator 320, adriving signal generator 330, and an enable signal controller 340. Theenable signal controller 340, in some implementations, may comprise aplurality of digital logic AND gates 342 and a digital logic OR gate344. When the interface 135 receives an input signal from the inverter125 of FIG. 1 and the motor driver 105 is operating in the settingoperation mode, the trial driving enable generator may generate a trialdriving enable signal at least partially based on the input signalreceived from the inverter 125 and may provide the trial driving enablesignal to the enable signal controller 340. In an implementation, theconventional driving enable signal generator 320 may generate aconventional driving enable signal and provide the conventional drivingenable signal to the enable signal controller 340. In an implementation,the enable signal controller 340 may further receive the setting modeenable signal and normal mode enable signal from the judgment logic 130.Each of the signals received by the enable signal controller 340 may bea binary signal and the enable signal controller 340 may generate afinal driving enable signal according to the AND gates 342 and OR gate344. FIG. 4 illustrates a table of input and output signal relationshipsfor the enable signal controller 340 in accordance with variousimplementations. Returning to FIG. 3, the enable signal controller 340may provide the final driving enable signal to the driving signalgenerator 330 and the driving signal generator may generate a drivingsignal for output by the logic circuit 155 to control a motor.

Turning now to FIG. 5, a flowchart of a method 500 for motor driveroperation mode selection in accordance with various implementations isshown. The method 500 may be implemented, for example, by the motordriver 105 (e.g., at least partially via the judgment logic 130) todetermine and/or select an operation mode (e.g., normal operation modeor setting operation mode) for the motor driver 105. At operation 505,when the motor driver 105 has been powered on (e.g., either power hasbeen turned on when it was previously off or the motor driver 105 isrestarted), the motor driver 105 proceeds to operation 510. When themotor driver has not been powered on, the method 500 remains atoperation 505.

At operation 510, the motor driver 105 begins mode judgment. Forexample, the motor driver 105 may begin the mode judgment bytransmitting a judgment start signal to one or more components of themotor driver 105 as discussed above with reference to FIG. 2. In someimplementations, the mode judgment may be performed by the judgmentlogic 130 of the motor driver 105. In some implementations, the modejudgment may continue for about 5 ms, about 7 ms, about 10 ms, or anyother suitable time period that allows for receipt of the prescribedsignal and that may be determined according to a particular constructionof an electrical circuit (e.g., an integrated circuit) that includes themotor driver 105. The judgment start signal may be transmitted, in someimplementations, from the logic circuit 155 of the motor driver 105 tothe judgment logic 130 of the motor driver 105. When the motor driver105 has been powered off after beginning mode judgment, at operation 515the method 500 returns to operation 505. When the motor driver 105 hasnot been powered off after beginning mode judgment, at operation 515 themethod 500 proceeds to operation 520.

At operation 520, the method 500 determines whether mode judgment hasended. For example, mode judgment may end at the expiration of apredetermined period of time, as discussed above with reference to FIG.2. When the mode judgment has ended, either after receipt of theprescribed signal or without receipt of the prescribed signal, themethod 500 proceeds to operation 525. When the mode judgment has notended, the method 500 returns to operation 515. At operation 525, themethod 500 determines (e.g., via at least the judgment logic 130)whether the prescribed signal has been detected in input received by themotor driver 105. When the prescribed signal has been detected, themethod 500 proceeds to operation 530. When the prescribed signal has notbeen detected, the method 500 proceeds to operation 535.

At operation 530, the motor driver 105 enters the setting operationmode. For example, after the judgment logic 130 has determined that theprescribed signal has been detected at operation 525, at operation 530the judgment logic 130 may transmit a setting mode enable signal to oneor more components of the motor driver 105 to instruct the one or morecomponents to operate in the setting operation mode. When the motordriver 105 has been powered off after entering the setting operationmode, at operation 540 the method 500 returns to operation 505. When themotor driver 105 has not been powered off after entering the settingoperation mode, at operation 540 the method 500 returns to operation540.

At operation 535 the motor driver 105 enters the normal operation mode.For example, after the judgment logic 130 has determined that theprescribed signal has not been detected at operation 525, at operation535 the judgment logic 130 may transmit a normal mode enable signal toone or more components of the motor driver 105 to instruct the one ormore components to operate in the normal operation mode. When the motordriver 105 has been powered off after entering the normal operationmode, at operation 545 the method 500 returns to operation 505. When themotor driver 105 has not been powered off after entering the normaloperation mode, the method 500 remains at operation 545.

Turning now to FIG. 6, a flowchart of a method 600 for motor driveroperation mode judgment in accordance with various implementations isshown. The method 600 may be implemented, for example, by the judgmentlogic 130 to determine an operation mode (e.g., normal operation mode orsetting operation mode) for the motor driver 105 according to an inputsignal received by the motor driver 105.

At operation 605, the judgment logic 130 begins mode judgment. Forexample, in response to receipt of a judgment start signal (e.g., suchas a judgment start signal received from logic circuit 155, as discussedabove), the judgment logic 130 may begin determining whether theprescribed signal has been (or is currently being) received by thejudgment logic 130 (and correspondingly, the motor driver 105). Atoperation 610, the judgment logic 130 determines whether the end of apredetermined period of time for detecting whether the prescribed signalhas been received (or for performing mode judgment) has occurred. Thepredetermined period of time may be a period of time of about 5 ms,about 7 ms, about 10 ms, or any other suitable time period that allowsfor receipt of the prescribed signal and that may be determinedaccording to a particular construction of an electrical circuit (e.g.,an integrated circuit) that includes the motor driver 105.

When the end of the predetermined period of time for detecting whetherthe prescribed signal has been received has occurred, the method 600proceeds to operation 625. At operation 625, the judgment logic 130determines that the prescribed signal has not been received and themethod 600 proceeds to operation 635. Returning to operation 610, whenthe end of the predetermined period of time for detecting whether theprescribed signal has been received has not occurred, the method 600proceeds to operation 615. At operation 615, the judgment logic 130determines whether the prescribed signal has been detected in inputreceived by the judgment logic 130. When the prescribed signal has beendetected, the method 600 proceeds to operation 620. When the prescribedsignal has not been detected, the method 600 returns to operation 610.

At operation 620, the judgment logic 130 determines that the prescribedsignal has been detected during the predetermined time period. In someimplementations, the prescribed signal may be included a plurality oftimes in a serial communication received by the judgment logic 130 andcorrespondingly the motor driver 105. In other implementations, it maybe desirable to hold the motor driver 105 in a mode judgment operation,for example, to prevent and/or avoid the prescribed pattern beinginterpreted as serial communication intended for processing and/orstorage by the motor driver 105. For example, in some implementations,the prescribed signal may be received by the judgment logic 130 aplurality of times (e.g., about 20 times) to provide multipleopportunities for the judgment logic 130 to detect the existence of theprescribed signal. In such implementations, the method 600 mayoptionally further comprise operation 630.

At operation 630, the judgment logic 130 determines whether detection ofthe prescribed signal is ongoing. For example, the judgment logic 130may determine that a periodically (or aperiodically) repeating series ofthe prescribed signal is being received by the judgment logic 130. Insuch implementations, the judgment logic 130 may remain at operation 630(e.g., in the mode judgment operation) until detection of the prescribedsignal is no longer ongoing (e.g., the judgment logic 130 ceasesreceiving the prescribed signal). When detection is not ongoing, themethod 600 may proceed to operation 635 at which the judgment logic 130determines that mode judgment has ended.

Turning now to FIG. 7, a flowchart of another method 700 for motordriver operation mode judgment in accordance with variousimplementations is shown. The method 700 may be implemented, forexample, by the judgment logic 130 to determine an operation mode (e.g.,normal operation mode or setting operation mode) for the motor driver105 according to an input signal received by the motor driver 105. Theoperation mode may be determined, for example, based on a binarytransition in an input signal of the judgment logic 130 occurring, ornot occurring, during a predefined period of time.

At operation 705, the judgment logic 130 begins mode judgment. Forexample, in response to receipt of a judgment start signal (e.g., suchas a judgment start signal received from logic circuit 155, as discussedabove). At operation 710, the judgment logic 130 may determine whether asignal at a high binary or logic level is being received by the judgmentlogic 130. When a signal at a high binary or logic level is beingreceived by the judgment logic 130, the method 700 proceeds to operation715. When a signal at a high binary or logic level is not being receivedby the judgment logic 130, the method 700 proceeds to operation 725.

At operation 715, the judgment logic 130 determines whether a predefinedamount of time has elapsed without a negative edge in the signal (e.g.,a predefined amount of time has elapsed without the signal changing fromthe high binary or logic level to a low binary or logic level). When thepredefined amount of time has not elapsed without a negative edge in thesignal (e.g., a negative edge in the signal occurring during thepredefined amount of time), the method 700 proceeds to operation 720. Atoperation 720, the judgment logic 130 determines whether a negative edgehas occurred in the signal. When a negative edge has not occurred in thesignal, the method 700 returns to operation 715. When a negative edgehas occurred in the signal, the method 700 proceeds to operation 725. Atoperation 725, the judgment logic 130 determines that the prescribedpattern has not been detected and proceeds to operation 740.

Returning now to operation 715, when the predefined amount of time haselapsed without a negative edge in the signal, the method 700 proceedsto operation 730. At operation 730, the judgment logic 130 determinesthat the prescribed pattern has been detected. In some implementations,the method 700 may optionally further comprise operation 735. In suchimplementations, the method 700 may proceed from operation 730 tooperation 735. At operation 735, the judgment logic 130 determineswhether a negative edge has occurred in the signal. When a negative edgehas not occurred in the signal, the method 700 returns to operation 735.When a negative edge has occurred in the signal, the method 700 proceedsto operation 740. At operation 740, the judgment logic 130 determinesthat mode judgment has ended.

Turning now to FIG. 8, a flowchart of another method 800 for motordriver operation mode judgment in accordance with variousimplementations is shown. The method 800 may be implemented, forexample, by the judgment logic 130 to determine an operation mode (e.g.,normal operation mode or setting operation mode) for the motor driver105 according to an input signal received by the motor driver 105. Theoperation mode may be determined, for example, based on a binarytransition in an input signal of the judgment logic 130 occurring, ornot occurring, during a predefined period of time.

At operation 805, the judgment logic 130 begins mode judgment. Forexample, in response to receipt of a judgment start signal (e.g., suchas a judgment start signal received from logic circuit 155, as discussedabove). At operation 810, the judgment logic 130 may determine whether atimeout condition has been met. The timeout condition may indicate, forexample, that an elapsed amount of time since beginning the modejudgment at operation 805 has exceeded the predetermined time fordetermining whether the prescribed signal is present. When the timeoutcondition has not been met, the method 800 proceeds to operation 815.When the timeout condition has been met, the method 800 proceeds tooperation 845. At operation 845, the judgment logic 130 determines thatthe prescribed pattern has not been detected and proceeds to operation850.

Returning to operation 815, the judgment logic 130 may determine whethera signal at a high binary or logic level is being received by thejudgment logic 130. When a signal at a high binary or logic level isbeing received by the judgment logic 130, the method 800 proceeds tooperation 820. When a signal at a high binary or logic level is notbeing received by the judgment logic 130, the method 800 returns tooperation 810.

At operation 820, the judgment logic 130 may determine whether thetimeout condition (e.g., as discussed with respect to operation 810) hasbeen met. When the timeout condition has not been met, the method 800proceeds to operation 825. When the timeout condition has been met, themethod 800 proceeds to operation 845. At operation 825, the judgmentlogic 130 determines whether a predefined amount of time has elapsedwithout a negative edge in the signal (e.g., a predefined amount of timehas elapsed without the signal changing from the high binary or logiclevel to a low binary or logic level). When the predefined amount oftime has not elapsed without a negative edge in the signal (e.g., anegative edge in the signal occurring during the predefined amount oftime), the method 800 proceeds to operation 830. At operation 830, thejudgment logic 130 determines whether a negative edge has occurred inthe signal. When a negative edge has not occurred in the signal, themethod 800 returns to operation 820. When a negative edge has occurredin the signal, the method 800 returns to operation 810.

Returning now to operation 825, when the predefined amount of time haselapsed without a negative edge in the signal, the method 800 proceedsto operation 835. At operation 835, the judgment logic 130 determinesthat the prescribed pattern has been detected and proceeds to operation840. At operation 840, the judgment logic 130 may determine whether anegative edge has occurred in the signal. When a negative edge has notoccurred in the signal, the method 800 returns to operation 840. When anegative edge has occurred in the signal, the method 800 proceeds tooperation 850. At operation 850, the judgment logic 130 determines thatmode judgment has ended.

Turning now to FIG. 9, a flowchart of another method 900 for motordriver operation mode judgment in accordance with variousimplementations is shown. The method 900 may be implemented, forexample, by the judgment logic 130 to determine an operation mode (e.g.,normal operation mode or setting operation mode) for the motor driver105 according to an input signal received by the motor driver 105. Theoperation mode may be determined, for example, based on a plurality ofbinary transitions in an input signal of the judgment logic 130occurring, or not occurring, during a predefined period of time.

At operation 905, the judgment logic 130 begins mode judgment. Forexample, in response to receipt of a judgment start signal (e.g., suchas a judgment start signal received from logic circuit 155, as discussedabove). At operation 910, the judgment logic 130 may determine whether atimeout condition has been met. The timeout condition may indicate, forexample, that an elapsed amount of time since beginning the modejudgment at operation 905 has exceeded the predetermined time fordetermining whether the prescribed signal is present. When the timeoutcondition has not been met, the method 900 proceeds to operation 915.When the timeout condition has been met, the method 900 proceeds tooperation 935. At operation 935, the judgment logic 130 determines thatthe prescribed pattern has not been detected and proceeds to operation940.

Returning to operation 915, the judgment logic 130 may determine whethera negative edge has occurred in the input signal. When a negative edgehas not occurred in the input signal, the method 900 returns tooperation 910. When a negative edge has occurred in the input signal,the method 900 proceeds to operation 920. At operation 920, the judgmentlogic 130 determines whether a plurality of negative edges in the inputsignal exceeding a threshold number of negative edges have occurred. Thethreshold may be any number of negative edges chosen for defining theprescribed signal and a number of negative edges in the input signalincluded in the threshold is not limited herein. When the number ofnegative edges exceeding the threshold have occurred in the inputsignal, the method 900 proceeds to operation 925. When the number ofnegative edges that have occurred in the input signal has not exceededthe threshold, the method 900 returns to operation 910.

At operation 925, the judgment logic 130 determines that the prescribedpattern has been detected and proceeds to operation 930. At operation930, the judgment logic 130 may determine whether the timeout condition(e.g., as discussed with respect to operation 910) has been met. Whenthe timeout condition has not been met, the method 900 remains atoperation 930. When the timeout condition has been met, the method 900proceeds to operation 940. At operation 940, the judgment logic 130determines that mode judgment has ended.

Turning now to FIG. 10, a flowchart of another method 1000 for motordriver operation mode judgment in accordance with variousimplementations is shown. The method 1000 may be implemented, forexample, by the judgment logic 130 to determine an operation mode (e.g.,normal operation mode or setting operation mode) for the motor driver105 according to an input signal received by the motor driver 105. Theoperation mode may be determined, for example, based on a plurality ofbinary transitions in an input signal of the judgment logic 130occurring, or not occurring, during a predefined period of time.

At operation 1005, the judgment logic 130 begins mode judgment. Forexample, in response to receipt of a judgment start signal (e.g., suchas a judgment start signal received from logic circuit 155, as discussedabove). At operation 1010, the judgment logic 130 determines whether apredefined amount of time has elapsed without a positive edge in thesignal (e.g., a predefined amount of time has elapsed without the signalchanging from the low binary or logic level to a high binary or logiclevel). When the predefined amount of time has not elapsed without apositive edge in the signal (e.g., a positive edge in the signaloccurring during the predefined amount of time), the method 1000proceeds to operation 1015. When the predefined amount of time haselapsed without a positive edge in the signal, the method 1000 proceedsto operation 1012. At operation 1012, the judgment logic 130 determinesthat the prescribed pattern has not been detected and proceeds tooperation 1040. Returning now to operation 1015, the judgment logic 130determines whether a positive edge has occurred in the signal. When apositive edge has not occurred in the signal, the method 1000 returns tooperation 1010. When a positive edge has occurred in the signal, themethod 1000 proceeds to operation 1020.

At operation 1020, the judgment logic 130 determines whether a pluralityof positive edges in the input signal exceeding a threshold number ofpositive edges have occurred. The threshold may be any number ofpositive edges chosen for defining the prescribed signal and a number ofpositive edges in the input signal included in the threshold is notlimited herein. When the number of positive edges exceeding thethreshold have occurred in the input signal, the method 1000 proceeds tooperation 1025. When the number of positive edges that have occurred inthe input signal has not exceeded the threshold, the method 1000 returnsto operation 1010. At operation 1025, the judgment logic 130 determinesthat the prescribed pattern has been detected and proceeds to operation1030.

At operation 1030, the judgment logic 130 determines whether apredefined amount of time has elapsed without a positive edge in thesignal (e.g., a predefined amount of time has elapsed without the signalchanging from the low binary or logic level to a high binary or logiclevel). When the predefined amount of time has not elapsed without apositive edge in the signal (e.g., a positive edge in the signaloccurring during the predefined amount of time), the method 1000 remainsat operation 1030. When the predefined amount of time has elapsedwithout a positive edge in the signal, the method 1000 proceeds tooperation 1035.

At operation 1035, the judgment logic 130 may determine whether an inputsignal at a low binary or logic level is being received by the judgmentlogic 130. When an input signal at a low binary or logic level is beingreceived by the judgment logic 130, the method 1000 proceeds tooperation 1040. When a signal at a low binary or logic level is notbeing received by the judgment logic 130, the method 1000 remains atoperation 1035. At operation 1040, the judgment logic 130 determinesthat mode judgment has ended.

Disclosed herein are various system implementations designed to providefor multi-functional serial control and/or monitoring of a motor driverusing a single multipurpose pin of an electrical component package of amotor driver. The electrical component package (package) may at leastpartially contain the motor driver and may include one or more pins(including, for example, the single multipurpose pin) as electricallyconductive paths for coupling devices outside of the electricalcomponent package to the motor driver. The motor driver may be at leastpartially contained within the electrical component package. The motordriver may be operable to couple to other devices such as a motor thatmay be driven by the motor driver and/or a controller that may controlat least some operations and/or functions of the motor driver, such as,by non-limiting example power, frequency, pulse width modulation, phase,and any other motor operation or control parameter. In variousimplementations, the motor driver may be operable to, via themultipurpose pin, output a FG signal and input (or output) serial datato the motor driver (for storing or reading data from the motor driver,respectively). In various implementations, the motor driver may befurther operable to, via the multipurpose pin, determine/set/control amode of operation of the motor driver desired by a controller coupled tothe motor driver via the multipurpose pin. For example, based on serialdata received by the motor driver at the multipurpose pin, the motordriver may (via at least one logic circuit of the motor driver)determine whether to operate the multipurpose pin in an enable modeduring which serial communication takes place during the normaloperation of the motor driver as it works to drive the motor (or otherdevice). The use of enable mode allows the multipurpose pin tofacilitate communication simultaneously or sequentially with normaloperation of the motor driver without the use of additional pins orconnections to set enable mode.

Referring to FIG. 11, a schematic diagram of a system 1042 with a motordriver 1044 coupled with a motor controller (controller) 1046 isillustrated. The motor driver 1044 may be coupled to, or may be operableto couple to, the controller 1046 and to a motor (not shown, eitherthrough the controller 1046 or directly), and other electricalcomponents (not shown) that may receive output from, or provide inputto, the motor driver 1044. In various implementations, the motor driver1044 may be directly (or indirectly) coupled to the controller 1046 viamultipurpose pin 1048. The multipurpose pin 1048 enables the motordriver to receive input (e.g., such as serial data) from the controller1046 and provide an output to the controller 1046. In this document, themultipurpose pin 1048 may be referred to as a FG pin (as it carries thefrequency generation signal used to operate the motor in variousimplementations).

The multipurpose pin 1048 (and correspondingly, the motor driver 1044)may be defined as having a normal operation mode and an enable mode(communication enabled mode). In various implementations, the motordriver 1044 determines independently whether the multipurpose pin 1048operates in the normal operation mode or the enable mode at leastpartially based on whether a prescribed signal is received at themultipurpose pin 1048 within a period of time allotted for receipt of acommunication enable signal. In other implementations, the motor driver1044 may utilize at least some input from the controller 1046 todetermine whether to operate in the normal operation mode or the enablemode. In both implementations, during the enable mode, the motor driver1044 continues to provide operating signals to the controller 1046simultaneously with the movement of data into or out of the controller.During the enable mode, the multipurpose pin 1048 may receive input datafrom the controller 1046 such as, by non-limiting example, sensorreadings (voltage, current, temperature data, etc.), control signals, orany other form of data received as serial input. During the enable mode,the multipurpose pin 1048 may be used to output data to the controller1046 from the motor driver 1044. In various implementations, thecircuitry of the motor driver 1044 may be designed to ensure that asynchronization period exists between the termination of data transferduring enable mode and the resumption of normal operation mode of themotor driver. This synchronization period appears as a delay ortransitional period of time between the ceasing of data transfer and thefull resumption of signals from the motor driver characteristic ofnormal operation mode.

As illustrated in FIG. 11, implementations of motor drivers 1044 mayinclude transistor 1050, inverter 1052, selection signal generator 1054,interface 1056, enable signal generator 1058, FG logic 1060, multiplexer1062, and logic circuit 1064. In various implementations, the motordriver 1044 may further include one or more other elements (shown andnot shown) that are used to enable driving of the motor by the motordriver 1044 and/or communication with the controller 1046 or other motoror motor control system components. In various implementations, theinverter 1052 has an input coupled to the multipurpose pin 1048 and anoutput coupled to the interface 1056. An output of the multiplexer 1062may be further coupled to the multipurpose pin 1048 via the transistor1050. For example, the transistor 1050, in various implementations (asillustrated in FIG. 11), may be a field effect transistor (FET)configured in an open-drain configuration in which a drain terminal ofthe transistor 1050 is coupled to the multipurpose pin 1048, a sourceterminal of the transistor 1050 is coupled to a ground voltage potential1066, and a gate terminal of the transistor 1050 is coupled to an outputof the multiplexer 1062. In other implementations, the transistor 1050may be of any transistor type and coupled to the other components of themotor driver 1044 in any of a variety of ways.

As illustrated in FIG. 11, in various implementations, the selectionsignal generator 1054 has a first input coupled to an ENABLE signalgenerated by the enable signal generator 1058, a second input coupled toa BUSY signal generated by interface 1056, a third input coupled to anFGO (frequency generator output) signal generated by FG logic 1060, andan output for a selection signal generator output (SELSO) signalgenerated by the selection signal generator. As illustrated, theinterface 1056 has a first input coupled to the ENABLE signal, a secondinput coupled to the output of the inverter 1052, a third input coupledto the logic circuit 1064, a first output for a BUSY signal generated bythe interface, a second output for a signal output (SO signal) coupledwith a first input of the multiplexer 1062, and a third output coupledwith the logic circuit 1064. The enable signal generator 1058 has afirst input for receiving the BUSY signal from interface 1056, a secondinput for receiving the SELSO signal from the selection signal generator1054, a third input for receiving the FGO signal from the FG logic 1060,and an output for the ENABLE signal from the enable signal generator. Asillustrated, in various implementations, the multiplexer 1062 has afirst input coupled with the SO signal output of the interface 1056, asecond input coupled with the FGO signal of the FG logic 1060, and anoutput coupled to the gate terminal of the transistor 1050. In variousimplementations, the FG logic 1060 has an input coupled to an output ofthe logic circuit 1064 and an output for the FGO signal generated by theFG logic 1060.

In various implementations, the multipurpose pin 1048 is coupled to apower source 1068 via resistor 1070 and to ground voltage potential 1066via transistor 1072. In some examples, the power source 1068 pulls themultipurpose pin 1048 up to a high state/level (voltage level) ofapproximately a value of an output voltage of the power source 1068minus a voltage drop associated with the resistor 1070. In particularimplementations, the controller 1046 controls the transistor 1072 topull the multipurpose pin down to a low state/level (voltage level) byconnecting the multipurpose pin 1048 to the ground voltage potential1066.

The various components of the motor driver 1044 work together with themultipurpose pin 1048 to create a system with a plurality of logicstates reflected in the truth table 1074 in FIG. 12. The truth tablereflects the effects of the various components as they interact witheach other and with incoming and outgoing data. The data that may betransmitted using the multipurpose pin 1048 may be, by non-limitingexample, serial data, binary data, packetized data, and any other datatype. As illustrated in the truth table 1074, data communication fromthe motor driver 1044 can begin when the ENABLE and BUSY signals are ata high level/value and the SELSO signal is at a low value. Datacommunications are ongoing while the ENABLE, BUSY, and SELSO signals allremain at the high level. As previously discussed, the datacommunication can involve data input, data output, or both data inputand output to the motor driver 1044 by the controller 1046. Datacommunications end as the ENABLE signal is at a high level, the BUSYsignal is at a low level, and the SELSO signal is at a high level. Ineither of the three states for ENABLE, BUSY, SELSO of {L, L, L}, {L, H,L}, and {H, L, L}, communication is not taking place and themultipurpose pin 1048 continues to support normal operation of thecontroller 1046 and transmit the FG signal to the controller 1046.

The interplay of these various logic states of the motor driver 1044 isillustrated in the flow chart 1076 of FIG. 19, which also reflects theimpact of the value of the FGO signal and an edge detector included inthe interface 1056 on the logic process of the motor driver. This flowchart 1076 is best understood with reference to signal timing diagram1078 in FIG. 20 which shows the various signals of the motor driver andthe controller, including those passing through the multipurpose pin asa function of time on the y axis. Beginning at the Start time, the motordriver 1044 is under normal operation mode, meaning that themultipurpose pin 1048 is outputting the FG signal to the controller1046. In this diagram, the signal marked Controller Output reflects asignal applied to the motor driver from the controller via themultipurpose pin (rather than the output of the controller to themotor). As can be observed, the FG signal regularly rises and falls, andsince it may not be a binary signal in various implementations (but havesome frequency and/or amplitude variation over time), the FG signal hasa rise time until it reaches its maximum value, maintains the value, andthen ceases. Via the logic circuit 1064, the FG logic unit 1060 controlsthe value of the FG signal by generates a binary signal FGO inverse tothe amplitude of the FG signal (FGO is low when the FG signal is high,and high when the FG signal is low). The enable signal generator, duringnormal operation mode likewise generates a binary signal thatcorresponds with the FG signal, but it directly correlates (is notinverse). The SI signal (signal inverter) is a signal into the interface1056 from the multipurpose pin 1048. As will be discussed at lengthhereafter, the SI signal is generated by the inverter 1052 from the FGsignal and because the inverter does not signal until substantially thefull amplitude of the FG signal has been reached, the onset of SI signalis offset from the actual start of the FG signal by the rise time of theFG signal (see indicator line 1080 in FIG. 20). During normal operation,the BUSY, SO (signal out from interface 1056), and SELSO signals are atlow levels during the entire period. This normal operation modecorresponds with the top most circle 1082 in FIG. 19 for the state {L,L, L} and with the circle 1088 for the state {H, L, L}, where nocommunication is taking place.

At circle 1088 in FIG. 19, the state is {H, L, L}. As indicated in truthtable 1074, this state enables the interface 1056. The edge detector ininterface 1056 then evaluates the SI signal. In the systemimplementation illustrated in FIGS. 11, 12, 19, and 20, the particularedge detector used is a positive edge detector (which will be describedin detail later in this document). The positive edge detector generatesa signal when it detects the rising edge of the SI signal. At a certainpoint in time, the controller 1046 sends a predefined signal to themotor driver 1044 (see FIG. 20, communication from controller signal1084) using the multipurpose pin 1048. The predefined signal can be,non-limiting example, a single pulse, multiple pulses, a frequencymodulation, multiple frequency modulations, any combination thereof, orany other signal type. In some implementations, the predefined signalmay not include any data; in others, the predefined signal may includeat least some data or may include all data. The effect of the predefinedsignal on the pattern of the FG signal is represented in FIG. 20, andhas the effect of modulating the frequency (or amplitude [or both]) ofthe FG signal. The modulation of the FG signal results in the ENABLEsignal being maintained at the high level by the enable signal generator1058 (see the signal level following circle 1086 marking the beginningof controller communication). As indicated in FIG. 19, where the FGOlevel remains low and a positive edge is detected in the SI signal, thenthe system transitions to the state in circle 1090 where the busy signalgenerator in the interface 1056 produces a high BUSY signal, {H, H, L}.This transition takes place at the point in FIG. 20 marked 1086.

During normal operation, if the edge detector detects a positive edge inthe SI signal and the FGO signal is high, the system transitions to the{L, H, L} state (circle 1096). The state change from {H, L, L} to {L, H,L} occurs when communication from the controller starts at the same timethe FGO signal switches to a high value. At this point the communicationstart is ignored and the system transitions to the {L, L, L} state(circle 1082) immediately. Therefore, in order to ensure a stabilizedcommunication, it is preferred that the controller starts communicationimmediately after that FG signal switches from low to high (FGO signalswitches from high to low).

When the motor driver 1044 has detected the presence of communicationfrom the controller through recognizing the predefined signal in the FGsignal. Following transition to the {H, H, L} state, the selectionsignal generator generates a high SELSO signal in response to receivingthe high BUSY signal, and the system then transitions to state {H, H, H}(circle 1092 in FIG. 19). At this point, motor driver 1044 is in acommunication ongoing state monitored by the interface 1056. In thisstate, communication from the controller 1046 is ongoing. Note that FIG.20 indicates that during this entire period of transition intocommunication with the controller 1046, the FG signal has continued tobe provided by multipurpose pin 1048 which continues to allow the motordriver to operate normally during the communication period. Because ofthis, the same multipurpose pin can be used to provide the FG signal andreceive the communication from (and to) the controller.

As illustrated in FIG. 20, after the communication from the controllerhas concluded, the motor driver 1044 will remain in the {H, H, H} stateuntil the interface detects that communication has ended between thecontroller and the motor driver 1044. In various implementations, theinterface determines/judges the communication end using predeterminedcriteria, such as, by non-limiting example, the passage of apredetermined period of time with no change of the SI and SO signal. Atthat point, the system transitions to the {H, L, H} state (circle 1094),where the busy signal generator changes the BUSY signal to a low state,indicating that the communication is no longer occurring. However,before the system transitions out of the state in circle 1094, threepossible destinations in the flow chart are available. These threepossible states/transitions/destinations permit the system to be able towork during a synchronization period to step the system from thecommunication period back into normal operating mode without disruptingthe FG signal being provided over the multipurpose pin 1048. The firstpossibility is that the interface detected the end of the communicationat the timing of FGO=H, and the next communication from the controllerstarts with the FGO signal level unchanged. This situation is indicatedby the FGO signal remaining high and the edge detector still providing apositive edge signal. If this condition is detected, the systemtransitions back into the {H, H, H} state, preventing the communicationfrom being disrupted. If the FGO signal is low but the edge detectorstill detects a positive edge, then the system transitions back to the{H, H, L} state (circle 1090 in FIG. 19). The state change from {H, L,H} to {H, H, L} occurs in two possible cases. The first is where theinterface judges communication from the controller ending at the timingof FGO=H, and the next communication from the controller starts at thesame time as the FGO signal's change to L. The second situation is wherethe interface judges the end of communication from the controller at thetime where FGO=L, and the next communication from the controller is thendetected by the interface immediately.

If the FGO signal is in the low state and no positive edge is detectedin the SI signal, then the system transitions from the {H, L, H} to the{H, L, L} state (circle 1088). This transition may occur in twosituations. The first is where the interface judges the communicationfrom the controller as ending as FGO transitions from H to L withoutanother communication being detected as starting from the controller.The second situation is where the interface determines that thecommunication has ended at the time where FGO=L and a subsequentcommunication from the controller is not detected by the interfaceimmediately.

The transition from the {H, L, H} state to the {H, L, L} state is markedin FIG. 20 at circle 1098. Note that the system has period of time afterwhich the BUSY signal goes to a low level before the system transitionsfully back to normal operating mode. This period of time in variousimplementations is included in the synchronization period previouslydiscussed. The use of various logic states of the motor driver 1044permits the system to use the multifunction pin to provide the FG signalcontinuously and step into and out of data communication with thecontroller as needed by the system.

FIGS. 16, 17, and 18 are flowcharts illustrating method implementationsshowing the logic flow into and out of communication using themultipurpose pin 1048. FIG. 16 shows a flowchart 1156 where the ENABLEsignal starts out a low value and the logical and signal conditions forsetting ENABLE to high (and back to low). FIG. 17 illustrates aflowchart 1158 where the BUSY signal starts out at a low value and thelogical and signal conditions for setting BUSY to high. FIG. 18illustrates a flowchart 1160 where the SELSO signal starts out a lowvalue and the logical and signal conditions for setting SELSO to high.In combination, these three flowcharts 1156, 1158, and 1160 worktogether to set the ENABLE, BUSY, and SELSO signals to highsimultaneously to allow communication to take place (and to set theappropriate BUSY and SELSO to low values to end communication).

The internal functions/structures of the various system modules will nowbe discussed in greater detail in the remainder of this document.

Referring to FIG. 13, a block diagram of an implementation of aninterface 1056 is illustrated. In various implementations, the interface1056 includes a communication controller 1100, a positive edge detector1102, and a busy signal generator 1104 coupled together. Thecommunication controller 1100 is coupled with the ENABLE signal from theenable signal generator 1058, the SI signal from inverter 1052, and hasoutputs that provide signals to the busy signal generator 1104 and forthe SO signal. The positive edge detector 1102 is coupled to SI signalfrom inverter 1052 and outputs a signal to the busy signal generator1104. The busy signal generator 1104 receives the output of thecommunication controller 1100, the positive edge detector 1102, and theENABLE signal and then outputs the BUSY signal. To make the variousdeterminations, the communication controller 1100 may include orimplement any suitable processing components or devices such as digitallogic gates, a microcontroller, or any other signal processing systemand/or method. Based on the input, the positive edge detector 1102determines whether the edge of the signal is a positive edge (e.g., arising edge) or a negative edge (e.g., a falling edge, in the case ofnegative edge detector). The positive edge detector 1102 may provide anoutput indicating whether a positive edge is detected in the input tothe busy signal generator 1104. FIG. 21 illustrates an implementation ofa positive edge detector 1120 which employs a flip-flop 1122 whoseoutput is coupled via inverter 1124 to AND gate 1126. Since the SIsignal is also ANDed with the output of the inverter 1124, the onlypoint at which the output of the inverter 1124 and the SI signal areboth high, causing the AND gate 1126 to output the SI positive edgesignal, is when the SI signal is rising to a maximum. In otherimplementations, various circuit components designed to detect thefalling edge of the SI signal may be employed to act as a falling edgedetector. Like all the flip-flops disclosed herein, a clock input of theflip-flop 1122 (which is a D flip-flop illustrated here) is configuredto receive a clock signal from any suitable clock source or clockingdevice.

Referring to FIG. 22, an implementation of a busy signal generator 1106is illustrated. As illustrated, the busy signal generator 1106 receivesthe output of the positive edge detector's evaluation of the SI signaland ANDs it with AND gate with the ENABLE signal. During operation, whenthe ENABLE signal is high and the edge detector detects a rising (orfalling edge) in the SI signal, the AND gate 1108 outputs a signal tomultiplexer 1110. Initially, multiplexer 1110 is set to pass the signalfrom AND gate 1108 to flip-flop 1112 (which is a D flip-flop in thisimplementation). The flip-flop 1112 then changes state in response,outputting the BUSY signal. Since the input 1114 of the multiplexer 1110is coupled with the output of the flip-flop 1112, the multiplexer 1110then switches to receive as its input the output of the second AND gate1116. Second AND gate 1116 receives the inverted output of thecommunication controller's detection of the positive edge of thecommunication end via inverter 1118 and ANDs it with the ENABLE signal.As a result, when the communication end is detected by the communicationcontroller's edge detector, since the ENABLE signal is still high fromthe ongoing communication, the second AND gate 1116 outputs a signal tomultiplexer 1110. Multiplexer 1110 then outputs the signal, causingflip-flop 1112 to change stage and set the BUSY signal to low whilesimultaneously resetting the multiplexer back to the output of the firstAND gate 1108 (allowing the busy signal generator to be ready togenerate the high BUSY signal again).

Referring to FIG. 14, a schematic diagram of an implementation of anenable signal generator 1059 is illustrated. In various implementations,the enable signal generator 1059 includes a first inverter 1128, asecond inverter 1130, a not-AND (NAND) gate (digital logic gate) 1132, athird inverter 1134, a multiplexer 1136, and a flip-flop 1138 (which isa D flip-flop in this implementation). The first inverter's input 1128is coupled with the BUSY signal from the busy signal generator 1106. Theoutput of the first inverter 1128 is coupled to a first input of theNAND gate 1132. The second inverter's 1130 input is coupled to the SELSOsignal from the selection signal generator 1054. The output of thesecond inverter 1130 is coupled to a second input of the NAND gate 1132.A third input of the NAND gate 1132 is coupled to the FGO signal fromthe FG logic unit 1060. The output of the NAND gate 1132 is coupled to afirst input of the multiplexer 1136. The third inverter 1134 is coupledto the FGO signal and its output is coupled to a second input of themultiplexer 1136. The output of the multiplexer 1136 is coupled to adata input of flip-flop 1138 (which is a D flip-flop in thisimplementation). The output of the flip-flop 1138 is coupled to acontrol input of the multiplexer 1136 and provides the ENABLE signalfrom the enable signal generator. Like all the flip-flops disclosedherein, a clock input of the D flip-flop 1138 is configured to receive aclock signal from any suitable clock source or clocking device.

Referring to FIG. 15, a schematic diagram of an implementation of aselection signal generator 1140 is illustrated. In the particularimplementation illustrated, the selection signal generator 1140 includesa first inverter 1142, a second inverter 1144, a NAND gate 1146, a firstAND gate 1148, a second AND gate 1150, a multiplexer 1152, and aflip-flop 1154 (which is a D flip-flop in this implementation). Thefirst inverter's 1142 input is coupled to the FGO signal and its outputis coupled to a first input of the NAND gate 1146. The second inverter's1144 input is coupled to the BUSY signal and its output is coupled to asecond input of the NAND gate 1146. The NAND gate 1146 has an outputcoupled to a first input of the first AND gate 1148. A second input ofthe first AND gate 1148 is coupled to the ENABLE signal and its outputis coupled to a first input of the multiplexer 1152. A first input ofthe second AND gate 1150 is coupled to the BUSY signal and a secondinput of the second AND gate 1150 is coupled to the ENABLE signal. Theoutput of the second AND gate 1150 is coupled to a second input of themultiplexer 1152. An output of the multiplexer 1152 is coupled to a datainput of flip-flop 1154 and an output of the flip-flop 1154 is coupledto the control input of the multiplexer 1152. The output of theflip-flop 1154 forms the SELSO signal from the selection signalgenerator. A clock input of the flip-flop 1154 is configured to receivea clock signal from any suitable clock source or device.

In places where the description above refers to particularimplementations of motor drivers, controllers, and implementingcomponents, sub-components, methods and sub-methods, it should bereadily apparent that a number of modifications may be made withoutdeparting from the spirit thereof and that these implementations,implementing components, sub-components, methods and sub-methods may beapplied to other motor drivers and controllers.

What is claimed is:
 1. A motor driver system, comprising: a motor driverconfigured to couple with a motor, the motor driver comprising amultipurpose pin; and a controller coupled with the motor driver throughat least the multipurpose pin; wherein the motor driver, during anenable mode, is configured to receive serial data from the controllerand to send serial data to the controller using the multipurpose pinduring a normal operation mode of the motor driver, and wherein themotor driver is configured to output a frequency generator (FG) signalto the controller using the multipurpose pin during the normal operationmode of the motor driver.
 2. The system of claim 1, wherein the motordriver, at the end of the enable mode, is configured to wait during asynchronization period before terminating one of sending serial data toor receiving serial data from the controller.
 3. The system of claim 1,wherein the motor driver further comprises: an interface comprising: acommunication controller, an edge detector, and a busy signal generatoroperatively coupled together and coupled with an inverter, the invertercoupled with the multipurpose pin; and a selection signal generator. 4.The system of claim 1, wherein the motor driver further comprises aninterface comprising: a communication controller coupled with an outputof an enable signal generator, the busy signal generator, and theinverter; wherein the edge detector is a positive edge detector.
 5. Thesystem of claim 4, wherein the enable signal generator comprises: afirst inverter coupled with an output of the busy signal generator; asecond inverter coupled with an output of a selection signal generator;a not-AND (NAND) gate comprising a first input coupled to an output ofthe first inverter, a second input coupled to an output of the secondinverter, a third input coupled to an output of a frequency generatorlogic unit, and an output coupled with a multiplexer; a third invertercomprising an input coupled to the output of the frequency generatorlogic unit and an output coupled with the multiplexer, the multiplexercomprising a control input and an output; and a flip-flop comprising adata input coupled to the output of the multiplexer, and an outputcoupled to the control input of the multiplexer and an output of theenable signal generator, the flip-flop configured to generate an enablesignal in response to receiving an output signal from the multiplexer.6. The system of claim 3, wherein the selection signal generatorcomprises: a first inverter coupled with an output of a frequencygenerator logic unit; a second inverter coupled with the output of thebusy signal generator; a first not-AND (NAND) gate having a first inputcoupled with an output of the first inverter and a second input coupledto an output of the second inverter; a first AND gate having a firstinput coupled to an output of the first NAND gate and a second inputcoupled to the output of the enable signal generator; a second AND gatehaving a first input coupled to the output of the busy signal generatorand a second input coupled to the output of the enable signal generator;a multiplexer having a first input coupled to the output of the firstAND gate, a second input coupled to the output of the second AND gate,and a control input; a flip-flop coupled to the output of themultiplexer and to an output coupled with the control input, theflip-flop configured to generate a selection signal generator outputsignal in response to receiving an output signal from the multiplexer.7. The system of claim 3, wherein the busy signal generator comprises:an inverter coupled with an output of the communication controller; afirst AND gate having a first input coupled with an output of theinverter and a second input coupled with an output of an enable signalgenerator; a second AND gate having a first input coupled with an outputof the edge detector and a second input coupled with the output of theenable signal generator; a multiplexer coupled with an output of thefirst AND gate and an output of the second AND gate, the multiplexerhaving a control input; and a flip-flop coupled with an output of themultiplexer, the flip-flop having an output coupled with the controlinput, the flip-flop configured to generate a busy signal output inresponse to receiving an output signal from the multiplexer.
 8. A motordriver system, comprising: a motor driver configured to couple with amotor, the motor driver comprising a multipurpose pin; and a controllercoupled with the motor driver through at least the multipurpose pin;wherein the motor driver comprises: a communication controller, an edgedetector, an enable signal generator, a frequency generator logic unit,a selection signal generator, and a busy signal generator operativelycoupled together and coupled with an inverter, the inverter coupled withthe multipurpose pin.
 9. The system of claim 8, wherein the motordriver, during an enable mode, is configured to receive serial data fromthe controller and to send serial data to the controller using themultipurpose pin during a normal operation mode of the motor driver, andwherein the motor driver is configured to output a frequency generator(FG) signal to the controller using the multipurpose pin during thenormal operation mode of the motor driver.
 10. The system of claim 9,wherein the motor driver, at the end of the enable mode, is configuredto wait during a synchronization period before terminating one ofsending serial data to or receiving serial data from the controller. 11.The system of claim 8, wherein the enable signal generator comprises: afirst inverter coupled with an output of the busy signal generator; asecond inverter coupled with an output of the selection signalgenerator; a not-AND (NAND) gate comprising a first input coupled to anoutput of the first inverter, a second input coupled to an output of thesecond inverter, a third input coupled to an output of the frequencygenerator logic unit, and an output coupled with a multiplexer; a thirdinverter comprising an input coupled to the output of the frequencygenerator logic unit and an output coupled with the multiplexer, themultiplexer comprising a control input and an output; and a flip-flopcomprising a data input coupled to the output of the multiplexer, theflip-flop having an output coupled to the control input of themultiplexer and an output of the enable signal generator, the flip-flopconfigured to generate an enable signal in response to receiving anoutput signal from the multiplexer.
 12. The system of claim 8, whereinthe selection signal generator comprises: a first inverter coupled withan output of the frequency generator logic unit; a second invertercoupled with the output of the busy signal generator; a first not-AND(NAND) gate having a first input coupled with an output of the firstinverter and a second input coupled to an output of the second inverter;a first AND gate having a first input coupled to an output of the firstNAND gate and a second input coupled to the output of the enable signalgenerator; a second AND gate having a first input coupled to the outputof the busy signal generator and a second input coupled to the output ofthe enable signal generator; a multiplexer having a first input coupledto the output of the first AND gate, a second input coupled to theoutput of the second AND gate, and a control input; a flip-flop coupledto the output of the multiplexer and to an output coupled with thecontrol input, the flip-flop configured to generate a selection signalgenerator output signal in response to receiving an output signal fromthe multiplexer.
 13. The system of claim 8, wherein the busy signalgenerator comprises: an inverter coupled with an output of thecommunication controller; a first AND gate having a first input coupledwith an output of the inverter and a second input coupled with an outputof the enable signal generator; a second AND gate having a first inputcoupled with an output of the edge detector and a second input coupledwith the output of the enable signal generator; a multiplexer coupledwith an output of the first AND gate and an output of the second ANDgate, the multiplexer having a control input; and a flip-flop coupledwith an output of the multiplexer and having an output coupled with thecontrol input, the flip-flop configured to generate a busy signal outputin response to receiving an output signal from the multiplexer.
 14. Amethod of driving a motor, the method, comprising: providing a motordriver configured to couple with a motor, the motor driver comprising amultipurpose pin, the multipurpose pin coupling a controller with themotor driver through at least the multipurpose pin; using the motordriver, receiving serial data from the controller using the multipurposepin and sending serial data to the controller using the multipurpose pinduring a normal operation mode of the motor driver, and outputting afrequency generator (FG) signal to the controller using the multipurposepin during the normal operation mode of the motor driver.
 15. The methodof claim 14, further comprising waiting, using the motor driver at theend of an enable mode, during a synchronization period beforeterminating one of sending serial data to or receiving serial data fromthe controller.
 16. The method of claim 14 wherein receiving serial datafrom the controller further comprises: beginning serial transmission ofdata by first setting an ENABLE signal to high, followed bysimultaneously setting a BUSY signal to high, and a Selection SignalGenerator Output (SELSO) to high.
 17. The method of claim 14, whereinsending serial data to the controller further comprises: first setting aBUSY signal to low and setting a Selection Signal Generator Output(SELSO) to low while an ENABLE signal to low thereby creating asynchronization period between when serial data transmission ends andthe normal operation mode of the motor driver begins.
 18. The method ofclaim 14, wherein an interface is coupled with the multipurpose pin andthe method further comprises: using the interface, sensing beginning ofserial data communication to the controller and sensing ending of serialdata communication to the controller; and synchronizing the serial datacommunication with the FG signal transmitted by the multipurpose pinduring the beginning and ending of serial data communication using theinterface.
 19. The method of claim 18, wherein sensing beginning ofserial data communication to the controller and sensing ending serialdata communication both further comprise using an edge detectorcomprised in the interface to sense an edge of the FG signal.
 20. Themethod of claim 19, further comprising: providing an output of the edgedetector to a busy signal generator; setting a BUSY signal to one of aHIGH value or a LOW value in response to the output of the edge detectorusing the busy signal generator; and using the BUSY signal to create asynchronization period between when serial data transmission ends andthe normal operation mode of the motor driver begins.